using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SendDomainEmailResponse : GeneratedMessageLite<SendDomainEmailResponse, SendDomainEmailResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SendDomainEmailResponse, SendDomainEmailResponse.Builder>
		{
			private bool resultIsReadOnly;
			private SendDomainEmailResponse result;
			protected override SendDomainEmailResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SendDomainEmailResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SendDomainEmailResponse DefaultInstanceForType
			{
				get
				{
					return SendDomainEmailResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public int DomainEmailRet
			{
				get
				{
					return this.result.DomainEmailRet;
				}
				set
				{
					this.SetDomainEmailRet(value);
				}
			}
			public uint Count
			{
				get
				{
					return this.result.Count;
				}
				set
				{
					this.SetCount(value);
				}
			}
			public IPopsicleList<DomainEmailItem> ListList
			{
				get
				{
					return this.PrepareBuilder().list_;
				}
			}
			public int ListCount
			{
				get
				{
					return this.result.ListCount;
				}
			}
			public Builder()
			{
				this.result = SendDomainEmailResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SendDomainEmailResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SendDomainEmailResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SendDomainEmailResponse other = this.result;
					this.result = new SendDomainEmailResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SendDomainEmailResponse.Builder Clear()
			{
				this.result = SendDomainEmailResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SendDomainEmailResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SendDomainEmailResponse.Builder(this.result);
				}
				return new SendDomainEmailResponse.Builder().MergeFrom(this.result);
			}
			public override SendDomainEmailResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SendDomainEmailResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is SendDomainEmailResponse)
				{
					return this.MergeFrom((SendDomainEmailResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SendDomainEmailResponse.Builder MergeFrom(SendDomainEmailResponse other)
			{
				return this;
			}
			public override SendDomainEmailResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SendDomainEmailResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SendDomainEmailResponse._sendDomainEmailResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SendDomainEmailResponse._sendDomainEmailResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasDomainEmailRet = input.ReadInt32(ref this.result.domainEmailRet_);
							continue;
						}
						if (num3 == 24u)
						{
							this.result.hasCount = input.ReadUInt32(ref this.result.count_);
							continue;
						}
						if (num3 == 34u)
						{
							input.ReadMessageArray<DomainEmailItem>(num, text, this.result.list_, DomainEmailItem.DefaultInstance, extensionRegistry);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public SendDomainEmailResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public SendDomainEmailResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public SendDomainEmailResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public SendDomainEmailResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public SendDomainEmailResponse.Builder SetDomainEmailRet(int value)
			{
				this.PrepareBuilder();
				this.result.hasDomainEmailRet = true;
				this.result.domainEmailRet_ = value;
				return this;
			}
			public SendDomainEmailResponse.Builder ClearDomainEmailRet()
			{
				this.PrepareBuilder();
				this.result.hasDomainEmailRet = false;
				this.result.domainEmailRet_ = 0;
				return this;
			}
			public SendDomainEmailResponse.Builder SetCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCount = true;
				this.result.count_ = value;
				return this;
			}
			public SendDomainEmailResponse.Builder ClearCount()
			{
				this.PrepareBuilder();
				this.result.hasCount = false;
				this.result.count_ = 0u;
				return this;
			}
			public DomainEmailItem GetList(int index)
			{
				return this.result.GetList(index);
			}
			public SendDomainEmailResponse.Builder SetList(int index, DomainEmailItem value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.list_[index] = value;
				return this;
			}
			public SendDomainEmailResponse.Builder SetList(int index, DomainEmailItem.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.list_[index] = builderForValue.Build();
				return this;
			}
			public SendDomainEmailResponse.Builder AddList(DomainEmailItem value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.list_.Add(value);
				return this;
			}
			public SendDomainEmailResponse.Builder AddList(DomainEmailItem.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.list_.Add(builderForValue.Build());
				return this;
			}
			public SendDomainEmailResponse.Builder AddRangeList(IEnumerable<DomainEmailItem> values)
			{
				this.PrepareBuilder();
				this.result.list_.Add(values);
				return this;
			}
			public SendDomainEmailResponse.Builder ClearList()
			{
				this.PrepareBuilder();
				this.result.list_.Clear();
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int DomainEmailRetFieldNumber = 2;
		public const int CountFieldNumber = 3;
		public const int ListFieldNumber = 4;
		private static readonly SendDomainEmailResponse defaultInstance;
		private static readonly string[] _sendDomainEmailResponseFieldNames;
		private static readonly uint[] _sendDomainEmailResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasDomainEmailRet;
		private int domainEmailRet_;
		private bool hasCount;
		private uint count_;
		private PopsicleList<DomainEmailItem> list_ = new PopsicleList<DomainEmailItem>();
		private int memoizedSerializedSize = -1;
		public static SendDomainEmailResponse DefaultInstance
		{
			get
			{
				return SendDomainEmailResponse.defaultInstance;
			}
		}
		public override SendDomainEmailResponse DefaultInstanceForType
		{
			get
			{
				return SendDomainEmailResponse.DefaultInstance;
			}
		}
		protected override SendDomainEmailResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public int DomainEmailRet
		{
			get
			{
				return this.domainEmailRet_;
			}
		}
		public uint Count
		{
			get
			{
				return this.count_;
			}
		}
		public IList<DomainEmailItem> ListList
		{
			get
			{
				return this.list_;
			}
		}
		public int ListCount
		{
			get
			{
				return this.list_.Count;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				if (!this.hasBaseResponse)
				{
					return false;
				}
				if (!this.hasDomainEmailRet)
				{
					return false;
				}
				if (!this.hasCount)
				{
					return false;
				}
				if (!this.BaseResponse.IsInitialized)
				{
					return false;
				}
				using (IEnumerator<DomainEmailItem> enumerator = this.ListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						DomainEmailItem current = enumerator.get_Current();
						if (!current.IsInitialized)
						{
							return false;
						}
					}
				}
				return true;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasDomainEmailRet)
				{
					num += CodedOutputStream.ComputeInt32Size(2, this.DomainEmailRet);
				}
				if (this.hasCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.Count);
				}
				using (IEnumerator<DomainEmailItem> enumerator = this.ListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						DomainEmailItem current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(4, current);
					}
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SendDomainEmailResponse()
		{
		}
		public DomainEmailItem GetList(int index)
		{
			return this.list_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] sendDomainEmailResponseFieldNames = SendDomainEmailResponse._sendDomainEmailResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, sendDomainEmailResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasDomainEmailRet)
			{
				output.WriteInt32(2, sendDomainEmailResponseFieldNames[2], this.DomainEmailRet);
			}
			if (this.hasCount)
			{
				output.WriteUInt32(3, sendDomainEmailResponseFieldNames[1], this.Count);
			}
			if (this.list_.Count > 0)
			{
				output.WriteMessageArray<DomainEmailItem>(4, sendDomainEmailResponseFieldNames[3], this.list_);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasDomainEmailRet)
			{
				num ^= this.domainEmailRet_.GetHashCode();
			}
			if (this.hasCount)
			{
				num ^= this.count_.GetHashCode();
			}
			using (IEnumerator<DomainEmailItem> enumerator = this.list_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					DomainEmailItem current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			return num;
		}
		public override bool Equals(object value)
		{
			SendDomainEmailResponse sendDomainEmailResponse = value as SendDomainEmailResponse;
			if (sendDomainEmailResponse == null)
			{
				return false;
			}
			if (this.hasBaseResponse != sendDomainEmailResponse.hasBaseResponse || (this.hasBaseResponse && !this.baseResponse_.Equals(sendDomainEmailResponse.baseResponse_)))
			{
				return false;
			}
			if (this.hasDomainEmailRet != sendDomainEmailResponse.hasDomainEmailRet || (this.hasDomainEmailRet && !this.domainEmailRet_.Equals(sendDomainEmailResponse.domainEmailRet_)))
			{
				return false;
			}
			if (this.hasCount != sendDomainEmailResponse.hasCount || (this.hasCount && !this.count_.Equals(sendDomainEmailResponse.count_)))
			{
				return false;
			}
			if (this.list_.Count != sendDomainEmailResponse.list_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.list_.Count; i++)
			{
				if (!this.list_[i].Equals(sendDomainEmailResponse.list_[i]))
				{
					return false;
				}
			}
			return true;
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SendDomainEmailResponse, SendDomainEmailResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<SendDomainEmailResponse, SendDomainEmailResponse.Builder>.PrintField("DomainEmailRet", this.hasDomainEmailRet, this.domainEmailRet_, writer);
			GeneratedMessageLite<SendDomainEmailResponse, SendDomainEmailResponse.Builder>.PrintField("Count", this.hasCount, this.count_, writer);
			GeneratedMessageLite<SendDomainEmailResponse, SendDomainEmailResponse.Builder>.PrintField<DomainEmailItem>("List", this.list_, writer);
		}
		public static SendDomainEmailResponse ParseFrom(byte[] data)
		{
			return SendDomainEmailResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SendDomainEmailResponse MakeReadOnly()
		{
			this.list_.MakeReadOnly();
			return this;
		}
		public static SendDomainEmailResponse.Builder CreateBuilder()
		{
			return new SendDomainEmailResponse.Builder();
		}
		public override SendDomainEmailResponse.Builder ToBuilder()
		{
			return SendDomainEmailResponse.CreateBuilder(this);
		}
		public override SendDomainEmailResponse.Builder CreateBuilderForType()
		{
			return new SendDomainEmailResponse.Builder();
		}
		public static SendDomainEmailResponse.Builder CreateBuilder(SendDomainEmailResponse prototype)
		{
			return new SendDomainEmailResponse.Builder(prototype);
		}
		static SendDomainEmailResponse()
		{
			SendDomainEmailResponse.defaultInstance = new SendDomainEmailResponse().MakeReadOnly();
			SendDomainEmailResponse._sendDomainEmailResponseFieldNames = new string[]
			{
				"BaseResponse",
				"Count",
				"DomainEmailRet",
				"List"
			};
			SendDomainEmailResponse._sendDomainEmailResponseFieldTags = new uint[]
			{
				10u,
				24u,
				16u,
				34u
			};
			object.ReferenceEquals(micromsg.Proto.SendDomainEmailResponse.Descriptor, null);
		}
	}
}
